package com.gilight.base.dto;

import org.apache.commons.lang3.StringUtils;

import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

public class BaseDto {

    private String cjr;

    private Date cjsj;

    private String xgr;

    private Date xgsj;

    /**
     * 页码
     */
    @NotNull(message = "pageNum不能为空")
    private Integer pageNum;
    /**
     * 每页条目数
     */
    @NotNull(message = "pageSize不能为空")
    private Integer pageSize;
    /**
     * 数据规则查询条件：通过切面动态传入
     */
    private List queryCons;

    public String getCjr() {
        return cjr;
    }

    public void setCjr(String cjr) {
        this.cjr = cjr;
    }

    public Date getCjsj() {
        return cjsj;
    }

    public void setCjsj(Date cjsj) {
        this.cjsj = cjsj;
    }

    public String getXgr() {
        return xgr;
    }

    public void setXgr(String xgr) {
        this.xgr = xgr;
    }

    public Date getXgsj() {
        return xgsj;
    }

    public void setXgsj(Date xgsj) {
        this.xgsj = xgsj;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }


    public List getQueryCons() {
        return queryCons;
    }

    public void setQueryCons(List queryCons) {
        this.queryCons = queryCons;
    }

    public static void main(String[] args) {
        System.out.println(StringUtils.leftPad("1", 2, "0"));
        System.out.println(StringUtils.leftPad("11", 2, "0"));
    }
}
